home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / Ubuntu 9.10 PL / karmelkowy-koliberek-desktop-9.10-i386-PL.iso / casper / filesystem.squashfs / usr / bin / xdg-user-dir < prev    next >
Text File  |  2009-10-15  |  234b  |  9 lines

  1. #!/bin/sh
  2.  
  3. test -f ${XDG_CONFIG_HOME:-~/.config}/user-dirs.dirs && . ${XDG_CONFIG_HOME:-~/.config}/user-dirs.dirs
  4. if [ "x$1" = "xDESKTOP" ]; then
  5.   eval echo \${XDG_${1}_DIR:-$HOME/Desktop}
  6. else
  7.   eval echo \${XDG_${1}_DIR:-$HOME}
  8. fi
  9.